/*
 * @Author: your name
 * @Date: 2021-05-08 21:20:59
 * @LastEditTime: 2021-05-08 21:34:46
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \finance-front\src\http\apis\modules\specialApproval.js
 */
import axios from "../../axios.js"
// 特殊单的审批
export default {
  // 特殊单的待审批和已经审批查看
  getWaitApproval(data, binding) {
    return axios({
      url: '/crm/selectAllSpecialApplicationApproval',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  // 特殊申请的详情查看,传入当前数据的specialId和特殊单类型
  selectApplicationDetail(data, binding) {
    return axios({
      url: '/crm/selectApplicationDetail',
      method: 'get',
      params: data,
      headers: {
        "binding": binding
      }
    })
  },
  // 所有特殊单查看
  selectAllSpecialApplication(data, binding) {
    return axios({
      url: '/crm/selectAllSpecialApplication',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  // 服务费优惠申请
  insertServiceApplication(data, binding) {
    return axios({
      url: '/crm/insertServiceApplication',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  // 多后台申请
  insertManyBackground(data, binding) {
    return axios({
      url: '/crm/insertManyBackground',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  // 转单申请
  insertTransferApplication(data, binding) {
    return axios({
      url: '/crm/insertTransferApplication',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  //转类型申请
  insertTransTypeApply(data, binding) {
    return axios({
      url: '/crm/insertTransTypeApply',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  // 签单客户的协议编号查询其信息
  selectNameNote(data, binding) {
    return axios({
      url: '/crm/selectNameNote',
      method: 'get',
      params: data,
      headers: {
        "binding": binding
      }
    })
  },
  // 通过协议编号申请
  selectByContract(data, binding) {
    return axios({
      url: '/crm/selectByContract',
      method: 'get',
      params: data,
      headers: {
        "binding": binding
      }
    })
  },
  // 多后台申请详情
  ManyBackDetails(data, binding) {
    return axios({
      url: '/crm/selectManyBackgroundOne',
      method: 'get',
      params: data,
      headers: {
        "binding": binding
      }
    })
  },
  // 重启单申请详情
  RestartDetails(data, binding) {
    return axios({
      url: '/crm/selectRestartApplicationOne',
      method: 'get',
      params: data,
      headers: {
        "binding": binding
      }
    })
  },
  // 服务费优惠详情
  ServiceFeeDetail(data, binding) {
    return axios({
      url: '/crm/selectServiceApplicationOne',
      method: 'get',
      params: data,
      headers: {
        "binding": binding
      }
    })
  },
  // 转单申请详情
  TurnDetails(data, binding) {
    return axios({
      url: '/crm/selectTransferApplicationOne',
      method: 'get',
      params: data,
      headers: {
        "binding": binding
      }
    })
  },
  // 转类型申请详情
  TransTypeDetails(data, binding) {
    return axios({
      url: '/crm/selectTransTypeApplyOne',
      method: 'get',
      params: data,
      headers: {
        "binding": binding
      }
    })
  },
  // 特殊单申请列表
  getFiveSpecial(data, binding) {
    return axios({
      url: 'process/getFiveSpecial',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  // 退费单申请详情
  ChargebackDetail(data, binding) {
    return axios({
      url: '/crm/selectChargebackDetail',
      method: 'get',
      params: data,
      headers: {
        "binding": binding
      }
    })
  },
  // 优惠单查询前后台结账
  getDis_Api(data) {
    return axios({
      url: '/crm/selectNameNoteByService',
      method: 'get',
      params: data
    })
  },
  // 优惠单详情
  getDisDetails_Api(data) {
    return axios({
      url: '/crm/selectNameNoteByServiced',
      method: 'get',
      params: data
    })
  },
  // 获取后台
  getBack_Api(data) {
    return axios({
      url: '/crm/selectBackDepartmentByMyDepart',
      method: 'get',
      params: data
    })
  },
  // 重启单重启部门
  getRestartDepart_Api(data) {
    return axios({
      url: '/crm/selectBackDepartmentByMyDepartType',
      method: 'get',
      params: data
    })
  },
  // 重启单重启部门
  getDepartType_Api(data) {
    return axios({
      url: '/crm/selectBackDepartByTypeName',
      method: 'get',
      params: data
    })
  },
}
